class SendGoodsPointsEntity {
  SendGoodsPointsResult result;
  int status;

  SendGoodsPointsEntity({this.result, this.status});

  SendGoodsPointsEntity.fromJson(Map<String, dynamic> json) {
    result =
    json['result'] != null ? new SendGoodsPointsResult.fromJson(json['result']) : null;
    status = json['status'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.result != null) {
      data['result'] = this.result.toJson();
    }
    data['status'] = this.status;
    return data;
  }
}

class SendGoodsPointsResult {
  List<CityArray> cityArray;
  String mileage;
  List<ParkArray> parkArray;
  String parkSize;
  List<TrackArray> trackArray;

  SendGoodsPointsResult(
      {this.cityArray,
        this.mileage,
        this.parkArray,
        this.parkSize,
        this.trackArray});

  SendGoodsPointsResult.fromJson(Map<String, dynamic> json) {
    if (json['cityArray'] != null) {
      cityArray = new List<CityArray>();
      json['cityArray'].forEach((v) {
        cityArray.add(new CityArray.fromJson(v));
      });
    }
    mileage = json['mileage'];
    if (json['parkArray'] != null) {
      parkArray = new List<ParkArray>();
      json['parkArray'].forEach((v) {
        parkArray.add(new ParkArray.fromJson(v));
      });
    }
    parkSize = json['parkSize'];
    if (json['trackArray'] != null) {
      trackArray = new List<TrackArray>();
      json['trackArray'].forEach((v) {
        trackArray.add(new TrackArray.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.cityArray != null) {
      data['cityArray'] = this.cityArray.map((v) => v.toJson()).toList();
    }
    data['mileage'] = this.mileage;
    if (this.parkArray != null) {
      data['parkArray'] = this.parkArray.map((v) => v.toJson()).toList();
    }
    data['parkSize'] = this.parkSize;
    if (this.trackArray != null) {
      data['trackArray'] = this.trackArray.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class CityArray {
  String cityCode;
  String cityName;
  String vInOutTime;
  String vInOutType;

  CityArray({this.cityCode, this.cityName, this.vInOutTime, this.vInOutType});

  CityArray.fromJson(Map<String, dynamic> json) {
    cityCode = json['cityCode'];
    cityName = json['cityName'];
    vInOutTime = json['vInOutTime'];
    vInOutType = json['vInOutType'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['cityCode'] = this.cityCode;
    data['cityName'] = this.cityName;
    data['vInOutTime'] = this.vInOutTime;
    data['vInOutType'] = this.vInOutType;
    return data;
  }
}

class ParkArray {
  String parkAdr;
  String parkBte;
  String parkEte;
  String parkLat;
  String parkLon;
  String parkMins;

  ParkArray(
      {this.parkAdr,
        this.parkBte,
        this.parkEte,
        this.parkLat,
        this.parkLon,
        this.parkMins});

  ParkArray.fromJson(Map<String, dynamic> json) {
    parkAdr = json['parkAdr'];
    parkBte = json['parkBte'];
    parkEte = json['parkEte'];
    parkLat = json['parkLat'];
    parkLon = json['parkLon'];
    parkMins = json['parkMins'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['parkAdr'] = this.parkAdr;
    data['parkBte'] = this.parkBte;
    data['parkEte'] = this.parkEte;
    data['parkLat'] = this.parkLat;
    data['parkLon'] = this.parkLon;
    data['parkMins'] = this.parkMins;
    return data;
  }
}

class TrackArray {
  String agl;
  String gtm;
  String hgt;
  String lat;
  String lon;
  String mlg;
  String spd;

  TrackArray(
      {this.agl, this.gtm, this.hgt, this.lat, this.lon, this.mlg, this.spd});

  TrackArray.fromJson(Map<String, dynamic> json) {
    agl = json['agl'];
    gtm = json['gtm'];
    hgt = json['hgt'];
    lat = json['lat'];
    lon = json['lon'];
    mlg = json['mlg'];
    spd = json['spd'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['agl'] = this.agl;
    data['gtm'] = this.gtm;
    data['hgt'] = this.hgt;
    data['lat'] = this.lat;
    data['lon'] = this.lon;
    data['mlg'] = this.mlg;
    data['spd'] = this.spd;
    return data;
  }
}
